<?php

class Manager extends CL_Controller {

    function Manager() {
        parent::CL_Controller();
    }

    /**
     * @param string $name
     * @param string $address
     * @AjaxCallable
     * @AjaxMethod=POST
     */
    function add_client($name, $address) {
        echo $name;
        echo $address;

        print_r($_POST);
    }

    /**
     * @param int $id
     * @AjaxCallable
     * @AjaxMethod=GET
     * @AjaxAsync=TRUE
     */
    function delete_client($id) {
        echo "Client with id $id was deleted.";
    }
}

?>
